<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
   	echo '注册成功！！';
});
Route::get('/qq', function () {
   	echo '登录成功！！';
});
Route::get('/deng','userControllers@index');
// Route::get('/create','articleController@create');
Route::post('/aaa','userControllers@lu');
Route::get('/zhuce','userControllers@zhuce');
Route::post('/form','userControllers@form');
Route::get('/tupian','userControllers@tupian');
//博客
Route::get('/boke','userControllers@boke');
Route::get('/add','userControllers@add');
Route::post('/doadd','userControllers@doadd');
Route::get('/yuedu/{id}','userControllers@yuedu');
Route::get('/xiugai/{id}','userControllers@xiugai');
Route::post('/xiugai/{id}','userControllers@doxiugai');
Route::post('/del/{id}','userControllers@del');
Route::get('/yulan','userControllers@yulan');
//无限遍历
Route::get('/bianli','userControllers@bianli');
Route::post('/bianli','userControllers@dobianli');
//购物车
Route::resource('/shop','shopController');
// Route::get('/cart','userControllers@cart');
Route::get('/addcart/{id}','userControllers@addcart');
Route::get('/list','userControllers@list')->name('cart');
Route::get('/dell/{id}','userControllers@dell');
Route::get('/destroy','userControllers@destroy');

//图片预览
Route::get('/yu','userControllers@shangchuan');
Route::post('/yu','userControllers@doshangchuan');




